package com.sky.common;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ejlchina.searcher.bean.DbIgnore;
import com.ejlchina.searcher.bean.SearchBean;
import com.sky.domain.BaseEntity;
import lombok.Data;
import lombok.ToString;
import org.apache.commons.lang3.StringUtils;

/**
 * 附件对象
 *
 * @author tzl
 * @date 2022-12-28
 */
@Data
@ToString
@SearchBean(tables = "tra_file")
@TableName("tra_file")
public class Attachment extends BaseEntity
{

    /** 主键 */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;


    /** 附件url */

    private String path;

    /** 附件名称 */

    private String name;

    /** 附件大小 */

    private String size;
    private String remark;

    @TableField(exist = false)
    @DbIgnore
    private String url;
}
